package cg.studio.distribute.vote.client;

import java.util.Map;

import cg.studio.distribute.vote.model.Topic;
import cg.studio.distribute.vote.server.VoteManager;
import cg.studio.distribute.vote.site.Site;

public class EndUser
{
  private Site ownerSite;
  
  public EndUser()
  {
    ownerSite = VoteManager.getSiteAssigner().getOwnerSite( this );
  }
  
  public Topic[] getTopics()
  {
    return Topic.values();
  }
  
  
  public void vote( Topic topic )
  {
    ownerSite.vote( topic );;
  }
  
  public int[] getTopicVote()
  {
    return ownerSite.getTopicVote();
  }
}
